import { Entity, PrimaryColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity({ name: 'resume_delivery' })
export class ResumeDeliveryEntity {
  @PrimaryColumn({ length: 32 })
  id: string;

  @Column({ length: 32, comment: '职位id' })
  pid: string;

  @Column({ length: 32, comment: '简历id' })
  rid: string;

  @Column({ length: 32, comment: '用户id' })
  uid: string;

  @Column({
    type: 'tinyint',
    default: 0,
    comment: '0未阅读 1已阅读 2已拒绝 3已发送面试邀请 4已接受面试 5面试不通过 6已发送offer 7学生已接受offer'
  })
  status: number;

  @Column({ type: 'datetime', comment: '投递时间' })
  time: Date;
}
